package com.dalei.vdsmanager.management.vds.action;

import com.dalei.vdsmanager.management.vds.service.VDSUserService;
import com.opensymphony.xwork2.ActionSupport;

public class RemoveVDSUserAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8010514570462532766L;
	
	private VDSUserService vdsUserService;
	
	private int id;

	public VDSUserService getVdsUserService() {
		return vdsUserService;
	}

	public void setVdsUserService(VDSUserService vdsUserService) {
		this.vdsUserService = vdsUserService;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		// return super.execute();
		vdsUserService.removeVDSUser(id);
		return SUCCESS;
	}
}
